package io.renren.modules.substation.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.substation.dao.TSampIrDataInfoDao;
import io.renren.modules.substation.entity.TSampIrDataInfoEntity;
import io.renren.modules.substation.service.TSampIrDataInfoService;


@Service("tSampIrDataInfoService")
public class TSampIrDataInfoServiceImpl extends ServiceImpl<TSampIrDataInfoDao, TSampIrDataInfoEntity> implements TSampIrDataInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TSampIrDataInfoEntity> page = this.page(
                new Query<TSampIrDataInfoEntity>().getPage(params),
                new QueryWrapper<TSampIrDataInfoEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public int updateByDevId(TSampIrDataInfoEntity tSampIrDataInfoEntity){

        return baseMapper.updateByDevId(tSampIrDataInfoEntity);
    }

}